function foo(a,b,c){alert(a);document.write(b+c)}foo("arf","woof","yip")